package tweeks.user.dao;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import tweeks.user.domain.User;

@Repository("UserDaoMybatis")
public class UserDaoMybatis extends SqlSessionDaoSupport implements UserDao {
	
	@Resource(name="sqlSessionTemplate")
	public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
		super.setSqlSessionTemplate(sqlSessionTemplate);
	}
	
	public void addUser(User user) {
		getSqlSession().insert("userDao.addUser", user);
	}
	
	public void deleteAll() {
	}

}